﻿#pragma once
#include <list>
#include "sdl_sub.h"
#include "chara.h"
#include "dh2_object.h"
class dh2_main
{
private:
	sdl_sub sdl;
	string name;
	bool flag_quit;

	int window_width;
	int window_height;

	int frame_rate;
	image back_image;
	image layout;

	int direction[4];

	dh2_object ol;
	SDL_Rect layout_rect;
public:
	dh2_main(void);
	~dh2_main(void);
	void set_ol();
	void bg_update();
	bool init();
	bool setup();
	bool start();
	void event();
	void set_direction();
	void set_move();
	SDL_Rect check_layout(SDL_Rect dir, SDL_Rect xy);

};
